package org.example.crm.dao;

import org.apache.ibatis.annotations.Mapper;
import org.example.crm.base.BaseMapper;
import org.example.crm.model.UserRole;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface UserRoleMapper extends BaseMapper<UserRole, Integer> {

    Integer queryUserRolesCountById(Integer userId);

    int deleteAllRolesByUserId(Integer userId);
}